package cn.wolfcode.trip.base.mapper;

import cn.wolfcode.trip.base.domain.Strategy;
import cn.wolfcode.trip.base.query.QueryObject;
import cn.wolfcode.trip.base.query.UserProfilesQueryObject;

import java.util.List;
import java.util.Map;

public interface StrategyMapper {
    int deleteByPrimaryKey(Long id);

    int insert(Strategy record);

    Strategy selectByPrimaryKey(Long id);

    int updateByPrimaryKey(Strategy record);

    List<Strategy> selectAll();
    List<Strategy> selectForList(QueryObject qo);

    Map<String, Object> getCounts(String keyword);

    List<Strategy> selectStrategiesByUserId(UserProfilesQueryObject qo);

    Boolean selectByuserIdandstrategyId();
}